﻿using com.guojin.core.io.message;
using System.Collections;
using System.Collections.Generic;
using com.guojin.core.io;
using UnityEngine;
using System;

namespace com.guojin.mj.net.message.login
{

    public class OnePeopleInfo : Message
    {

        public static int TYPE = 7;
        public static int ID = 75;
        /***玩家职位  
        0:代表普通会员 
        1:管理员  2:部长*/
        private int level;
        /***玩家姓名*/
        private string username;
        /***玩家id*/
        private int id;
        /***玩家得分*/
        private int score;

        private int online;
        public bool IsShow;
        public int Level
        {
            get
            {
                return level;
            }

            set
            {
                level = value;
            }
        }

        public string Username
        {
            get
            {
                return username;
            }
            set
            {
                username = value;
            }
        }
        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }
        public int Score
        {
            get
            {
                return score;
            }

            set
            {
                score = value;
            }
        }

        public int Online
        {
            get
            {
                return online;
            }

            set
            {
                online = value;
            }
        }

        public void decode(core.io.Input _in)
        {
            level = _in.readInt();
            username = _in.readString();
            id = _in.readInt();
            score = _in.readInt();
            online = _in.readInt();
            IsShow = _in.readBoolean();
        }

        public void encode(Output _out)
        {

        }

        public int getMessageType()
        {
            return TYPE;
        }

        public int getMessageId()
        {
            return Id;
        }

        public string toString()
        {
            return "";
        }
    }
}
